package first.progr.tc;

import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;

import org.testng.annotations.Test;

import first.progr.utils.SortedListOf;

public class PrintPhoneInformationCheckingTest extends TestBase{
	
	@Test
	public void checkInformation() throws Exception {
	// Save contacts from main page 
    SortedListOf<ContactData> contactsList = app.getContactHelper().getContacts2();
    
    //Moving on the "Print phone" page
    app.getContactHelper().moveOnPrintPhonePage();
    
    // Save contacts from main page
    SortedListOf<ContactData> phoneList = app.getContactHelper().getPhoneContacts();
    
    // Lists comparing
    assertThat(contactsList, equalTo(phoneList));
	}
}
